package Lee_code;

import java.util.HashSet;

public class Lee_217 {

    public boolean containsDuplicate(int[] nums) {
        HashSet<Integer> seen = new HashSet<>();

        for (int i: nums)
        {
            if(!seen.contains(i))
                seen.add(i);
            else
            {
                return true;
            }
        }

        return false;
    }
    public static void main(String[] args) {

    }
}
